package
{
	[Bindable]
	public class Record
	{
		private var _name:String;
		private var _time:String;
		
		public static function createFrom(window:NewRecordWindow):Record {
			var record:Record = new Record();
			record.name = window.nameText.text;
			record.time = window.time;
			return record;
		}
		
		public function set name(name:String):void {
			this._name = name;
		}
		
		public function get name():String {
			return this._name;
		}
		
		public function set time(time:String):void {
			this._time = time;
		}
		
		public function get time():String {
			return this._time;
		}
	}
}
